﻿using System.Collections.Generic;
using dz.u9.jky.schema.Attrib;
using dz.u9.jky.schema.Common;
namespace dz.u9.jky.schema.Customer
{
    public class DzCustomerDto
    {
        /// <summary>
        /// 客户编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 客户分类
        /// </summary>        
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string CustomerCategory { get; set; }

        /// <summary>
        /// 业务员
        /// </summary>

        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string Saleser { get; set; }

        /// <summary>
        /// 出货原则
        /// </summary>
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string ShippmentRule { get; set; }

        /// <summary>
        /// 立帐条件
        /// </summary>
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string ARConfirmTerm { get; set; }


        /// <summary>
        /// 收款条件
        /// </summary>
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string RecervalTerm { get; set; }


        /// <summary>
        /// 税组合
        /// </summary>
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string TaxSchedule { get; set; }

        /// <summary>
        /// 交易币种
        /// </summary>
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string TradeCurrency { get; set; }

        /// <summary>
        /// 收款币种
        /// </summary>
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string PayCurrency { get; set; }



        /// <summary>
        /// 客户地址
        /// </summary>
        //[DzList("UFIDA.U9.CBO.SCM.Customer.CustomerSiteDTO,UFIDA.U9.CBO.PubSV")]
        [DzList("UFIDA.U9.ISV.Customer.CustomerSiteDTO,UFIDA.U9.ISV.Customer")]
        [DzAlias("CustomerSiteDTOs")]
        public List<DzCustomerSiteDTO> CustomerSites { get; set; }

        /// <summary>
        /// 纳税人识别号
        /// </summary>
        public string StateTaxNo { get; set; }

        /// <summary>
        /// 弹性域
        /// </summary>
        [DzComplexObject("UFIDA.U9.Base.FlexField.DescFlexField.DescFlexSegments,UFIDA.U9.Base.BaseBE")]
        public DescFlexField DescFlexField { get; set; }

        /// <summary>
        /// 组织
        /// </summary>

        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]

        public string Org { get; set; }

        /// <summary>
        /// 价格含税
        /// </summary>
        public bool? IsTaxPrice { get; set; }

        /// <summary>
        /// 生效
        /// </summary>
        [DzComplexObject("UFIDA.U9.Base.PropertyTypes.Effective,UFIDA.U9.Base.BaseBE")]
        public DzEffective Effective { get; set; }        
    }
}
